From: Ian Jackson Date: Wed, 4 May 2016 14:04:35 +0000 (+0100) Subject: libxl: Do not trust backend in libxl__device_exists X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1052 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=696a1c5e8e59a16b6047df6936444842e6408521;p=xen.git libxl: Do not trust backend in libxl__device_exists To determine whether a device is supposed to exist, look in /libxl, rather than the backend. This is part of XSA-178. Signed-off-by: Ian Jackson Reviewed-by: Wei Liu --- diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 4b61b4c2d5..4717027821 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -54,7 +54,7 @@ int libxl__device_exists(libxl__gc *gc, xs_transaction_t t, libxl__device *device) { int rc; - char *be_path = libxl__device_backend_path(gc, device); + char *be_path = libxl__device_libxl_path(gc, device); const char *dir; rc = libxl__xs_read_checked(gc, t, be_path, &dir);